import {VxeGridPropTypes} from "vxe-table/types/grid";
// import XEUtils from 'xe-utils'

export const supplierColumns: VxeGridPropTypes.Columns = [
  {field: 'code', title: '供应商编码', sortable: false, visible: true, width: 140,},
  {field: 'name', title: '供应商名称', sortable: false, visible: true, minWidth: 160,},
  {field: 'contacts', title: '联系人', sortable: false, visible: true, width: 100,},
  {field: 'phone', title: '联系电话', sortable: false, visible: true, width: 150,},
  {field: 'enable', title: '启用', sortable: false, width: 50, formatter: 'formatEnable',},
]

export const customerColumns: VxeGridPropTypes.Columns = [
  {field: 'code', title: '客户编码', sortable: false, visible: true, width: 140,},
  {field: 'name', title: '客户名称', sortable: false, visible: true, minWidth: 160,},
  {field: 'contacts', title: '联系人', sortable: false, visible: true, width: 100,},
  {field: 'phone', title: '联系电话', sortable: false, visible: true, width: 150,},
  {field: 'enable', title: '启用', sortable: false, width: 50, formatter: 'formatEnable',},
]

export const whColumns: VxeGridPropTypes.Columns = [
  {field: 'code', title: '仓库编码', sortable: false, visible: true, width: 130,},
  {field: 'name', title: '仓库名称', sortable: false, width: 130,},
  {field: 'address', title: '仓库地址', sortable: false, width: 130,},
  {field: 'isDefault', title: '默认仓库', sortable: false, visible: false, width: 80,},
  {field: 'memo', title: '备注', visible: false, sortable: false, width: 130,},
  {field: 'contacts', title: '发货联系人', visible: false, sortable: false, width: 120,},
  {field: 'enable', title: '启用', sortable: false, width: 50, formatter: 'formatEnable',},
  {field: 'phone', title: '联系人手机', visible: true, sortable: false, width: 110,},
]
